package com.zhong.sao;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author itsome on 2021-08-27 21:57:30
 */
@FeignClient("microservice-50-dt-account")
public interface AccountClient {

    @PutMapping("/account/{userId}/{money}")
    void debit(@PathVariable("userId") String userId, @PathVariable("money") Integer money);
}